# num=int(input("输入一个数字："))
# if num%2==0:
#     if num%3==0:
#         print ("你输入的数字可以整除 2 和 3")
#     else:
#         print ("你输入的数字可以整除 2，但不能整除 3")
# else:
#     if num%3==0:
#         print ("你输入的数字可以整除 3，但不能整除 2")
#     else:
#         print  ("你输入的数字不能整除 2 和 3")

# age = int(input("请输入你家狗狗的年龄: "))
# print("")
# if age <= 0:
#     print("你是在逗我吧!")
# elif age == 1:
#     print("相当于 14 岁的人。")
# elif age == 2:
#     print("相当于 22 岁的人。")
# elif age > 2:
#     human = 22 + (age - 2) * 5
#     print("对应人类年龄: ", human)
#
# ### 退出提示
# input("点击 enter 键退出")

# var1 = 100
# if var1:
#     print("1 - if 表达式条件为 true")
#     print(var1)
#
# var2 = 0
# if var2:
#     print("2 - if 表达式条件为 true")
#     print(var2)
# print("Good bye!")

# tinydict = {'name': 'runoob', 'likes': 123, 'url': 'www.runoob.com'}
# for site in tinydict:
#     print(site,"~~",tinydict[site])



# list1 = ['Google', 'Runoob', 1997, 2000]
# list2 = [1, 2, 3, 4, 5 ]
# list3 = ["a", "b", "c", "d"]
# list4 = ['red', 'green', 'blue', 'yellow', 'white', 'black']
#
#
# sites = ["Baidu", "Google","Runoob","Taobao"]
# for site in list1:
#     print(site)

# str = "runoob\t12345\tabc"
# print('原始字符串:', str)

# 默认 8 个空格
# runnob 有 6 个字符，后面的 \t 填充 2 个空格
# 12345 有 5 个字符，后面的 \t 填充 3 个空格
# print('替换 \\t 符号:', str.expandtabs())

# dd = "abcdefghijklmn"
#
# print(dd.capitalize())
#
# print(dd.center(20,"1"))
#
# str = "[runoob]"
# print ("str.center(40, '*') : ", str.center(40, '*'))
#
# ddd = "asdfwsxedcrfvas"
#
# print(ddd.count("a",5))

# str = "菜鸟教程";
# str_utf8 = str.encode("UTF-8")
# str_gbk = str.encode("GBK")
#
# print(str)
#
# print("UTF-8 编码：", str_utf8)
# print("GBK 编码：", str_gbk)
#
# print("UTF-8 解码：", str_utf8.decode('UTF-8', 'strict'))
# print("GBK 解码：", str_gbk.decode('GBK', 'strict'))